package com.insnow.knowshare.service;

import com.insnow.knowshare.entity.Post;

import java.util.List;

import java.util.Optional;

public interface PostService {

    Post createPost(Post post);

    Post updatePost(Post post);

    List<Post> getPostsByUser(Long userId);

    List<Post> searchPosts(String keyword);

    Optional<Post> getPostById(Long id);

}